#ifndef _BUOLA_NET_CXMLRPCARRAY_H_
#define _BUOLA_NET_CXMLRPCARRAY_H_

#include <buola/xml.h>

namespace buola { namespace io {

class CXMLRPCCall;
class CXMLRPCStruct;
    
class CXMLRPCArray
{
public:
    CXMLRPCArray();
    CXMLRPCArray(CXMLRPCCall &pCall);
    CXMLRPCArray(xml::CNode pArray);
    
    int GetCount();
    void Get(int n,CXMLRPCStruct &pStruct);
    
    void Add(const std::string &pValue);
    void Add(const CXMLRPCStruct &pStruct);

    xml::CNode XML() const   {   return mArray; }

private:
    xml::CNode mArray;
    xml::CNode mData;
};

/*namespace io*/ } /*namespace buola*/ }

#endif
